﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using DGIS.Word.WPF.Model;

namespace DGIS.Word.WPF
{
    /// <summary>
    /// CanvasPenWin.xaml 的交互逻辑
    /// </summary>
    public partial class CanvasPenWin : UserControl
    {
        private Action<Stroke> Callback;
        private Color Color;
        private int LineWidth;

        public CanvasPenWin()
        {
        }

        

        //public CanvasPenWin(Color color,int lineWidth)
        //{
        //    InitializeComponent();
        //    this.Topmost = true;

        //    this.MainCanvas.EditingMode = InkCanvasEditingMode.Ink;
        //    this.MainCanvas.DefaultDrawingAttributes.Width =lineWidth;
        //    this.MainCanvas.DefaultDrawingAttributes.Height = lineWidth;
        //    this.MainCanvas.DefaultDrawingAttributes.Color = color;
        //}

        //public void Init(Action<Stroke> func)
        //{
        //    Callback = func;

        //    this.mainCanvas.EditingMode = InkCanvasEditingMode.Ink;
        //    this.mainCanvas.StrokeCollected += MainCanvas_StrokeCollected;
        //}

        //public void Set(Color color, int lineWidth)
        //{
        //    Color = color;
        //    lineWidth = lineWidth;

        //    this.mainCanvas.DefaultDrawingAttributes.Width = lineWidth;
        //    this.mainCanvas.DefaultDrawingAttributes.Height = lineWidth;
        //    this.mainCanvas.DefaultDrawingAttributes.Color = color;
        //}


    }
}
